package rtdb;

import com.ht.memcached.MemCachedConfigurator;
import com.ht.memcached.MemCachedOpt;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Dong Shufeng
 *         Date: 2011-4-1
 */
public class RtdbCmdClient {
    //todo: this class is not finished, more sophisticated way should be used to show info
    public static void main(String[] args) {
        MemCachedConfigurator.config(RtdbCmdClient.class.getResourceAsStream("/config/memcached.properties"));
        if(args == null || args.length < 1) {
            showUsage();
            return;
        }
        if(args[0].equalsIgnoreCase("rtdb")) {
            if(args.length != 2) {
                showUsage();
                return;
            }
            System.out.println(MemCachedOpt.get(args[1]));
        }
        if(args.length == 3) {

        }
    }

    private static void showUsage() {
        System.out.println("not finished...");
    }
}
